package jvm.metaspace;

/**
 * @Author: ideaAdmin
 * TODO: Class
 * TODO: 使用对象为null的对象 调用类的静态方法和静态变量
 * Date: 2022/2/23:13:27
 * Description:
 */

public class MethodArea {
    public static void main(String[] args) {
        Order order = null;
        order.hello();
        System.out.println(order.num);
        System.out.println(order.a);
    }
}
class Order{
    public static  int a = 1;
    public static final int num = 2;
    public  final int num1 = 3;

    public static void hello(){
        System.out.println("Order.hello");
    }
}
